import createPersistedState from 'vuex-persistedstate';
import { createStore } from 'vuex';
import province from './modules/province';
import subject from './modules/subject';
import searchCollege from './modules/searchCollege';
import user from './modules/user';
import tianbao from './modules/tianbao';
import znxk from './modules/znxk';
import getters from './getters';
export default createStore({
  modules: {
    user,
    searchCollege,
    subject,
    province,
    tianbao,
    znxk,
  },
  getters,
  plugins: [
    createPersistedState({
      // 配置要持久化的模块
      paths: ['user', 'znxk.znxkInfo.currentCityeInfo'], // 指定需要持久化的模块
    }),
  ],
});
